Trying to finish up result loop