Updates the controller class to take in cart encoder information