Added pause and resume to doc class