Improved box spawning