Refactoring the Misc Contorller.