Trying to get the loop to execute