add doSync method.
comment.