Updated global margins, a little cleanup of deprecated code and a bug fix on reverse stacking.