A bit of tweaking for box position methods

Also removed some unused variables.