A hole load of changes.
Made spawning safer.