Simplifying the Contorller generated code.