Move init script to the script file