Added the 'unique' methods, refactored.