Changed local implementation to use already implemented offset.