Changed the spawn distance to spawn rate