Adding ability to pass in a request object if necessary.