Added toRawMeasure

Hopefully I got that loop okay...?