Update main script file