Less unnecessary math, more documentation.