Final measurements code