Coding for Spawns added.