Add results nested loop prog