Added support for NSURLConnection