Debug to test spawning