Added ability to define offsets.