Added getController() method.