Re-factored code to take args, also use functions, and generally be more easily modified.