Finished the prepare script