Adding first UPOD measurment code
Corrected minipod code