SPAWNSTATION function implemented