Added support for immediate mode requests. [Patrick Uiterwijk]