Improves file handling