Added support for capturing requests. Closes #5.