Updated controller with clearer method names.