Add pause and resume. (#2)