With help from Joel, I've now logged a loop. Still need to figure out how to insert the contents nicely into the modal.