Added exit generation
Fixed exit spawning glitch