Move init to script