Working on fixing the loop.