Properly setting offset and counts

@dnesbitt61