Initial extraction from Barometer gem (1.8.0)