Added option for inverted offset as asked in issue #10