I think the Boxstack testapp already does what you want. Just toggle off Random position and drop some boxes. Check the source. The Problem seems to arise with stiff problems (as usual) so adjusting the CFM might help. Holger