Spawn code

Right now it is not good