added new code for job sync.