Code should be wrapped in more functions and rename everything to be more understandable and less verbose.