Spawn Object function should now compile correctly