Made code more readable for myself. Attempting to understand execution of the program