Preprocessing files for competition