Re-tracks the main script file