Added support for passing in request headers.