Take BAR_OFFSET into account. Fixes #29.