Add close(), pause(), and resume() methods