Moved respawn code to core.