Used http://stackoverflow.com/a/23238595/2079814 to find the duplicate filtering trick. Sent from my iPhone