Implemented spawnrules