Added rudimentary handling for measure out of range, new exception