Removed debugging statement and added comments to the duplicate check