Added support for GetNextRequest
Improved handling of API commands