Created a spawns handler