Added ability to specify request options.