Improved several box methods

Speed boosting, logical tweaks.