Added set offset API
0.1.2