Before refactoring the code