Stav dette: The controller's function