The controller part