Restored measureBody, still needs fixing.