Ugly initial barometer implementation. Needs cleanup.