Made type of sync configurable.