Got rid of the nested loop rval. Make it easier on other ports.