Moving rectangle and measurement translation to separate modules