First attempt at a measurement string decoder