Base: Changed getUnique method to function