Refactoring the simple controller function