Good call. I don't know why I put this in the controller to begin with - should be in the model.