Better bar compression calculations. See #14