Changes offset calculation to user offset() instead of position() Fixes #239
Merge pull request #240 from tjrivera/issue239

Changes offset calculation to use offset() instead of position()