Added getRequest.
Fixed several bugs.