Add getSync method.