Corrected prepare files