Improved moving of boxes