From https://github.com/HubSpot/odometer