Corrected main files