Add spawn_creature function.