Make the loop handle a simple piece of memory

For me, this fixes #9.