Implemented the setting offsets constructor