Added the constructor with the controller parameter.