Improves the code of FileManager.