Fixed infinite loop. Have a different issue with non-repeating additions.