Apple has added the next-generation of motion tracking to its iPhone 6. The new device can measure elevation, such as tracking flights of stairs, using an inbuilt barometer. It works by analyzing relative air pressure.

All of this information will appear in the iPhone’s Health app, tracking how often you climb stairs and other related metrics. The chip can also differentiate between running and walking distances, as shown below.