Revert changes from last commit. Can't access params from model