Added pause() and unpause() to allow for asynchronous responses.