Added code to remove duplicates from Table