Before refactoring of code