Trying to get the loop to work. It's proving to be difficult.