Based off Vance's MeasureIt with tests for myself.