Added check to show if the job is still pending process