Now renderer is passed by reference