Moved scripts to end of file