Consider Using pathlib Consistently: Since we're already using Path from pathlib, we could leverage it throughout the code for cleaner path handling.