Let's just wrap this all up into some nice, nested loops