Added code for respawning