Restructuring code functionalities.