Main script file