Implement adding measurements and parts, updated Foundation