Added support for NSURLSessions.