Added a setRenderer function