Restructuring the code to make it more understandable and better.