Added a setLoader method