Added the reg_measure interface and an associated test file