Added support for multiple spawns