Implemented respawning. (similar to 4da8505)