apply-measure-pattern coded up, initial shake-out, now testing.