Moved creating spawners into a new function