Add requested changes from PR Issue #1 to respect offsets in a given bounds setting.