Code now ignores duplicate entries. Also, fixed some naming conventions.