Improved duplicate removing module