Instead of just making all the needed calls, rewrite the code using functions. That will make it easier to see a summary of what's happening.