Moved Profile logic out of controller and into Profile model.