Prepare file functions for fixing