Added user agent parameter to loader superclass