Added pause and resume features