Added support for spawning things on the fly