Removed duplicates at the end