Imported the Unique code created by Avinash Celestine <avinash.celestine@gmail.com> posted on the datameet list