Only save unique IDs. #594
Updated labels. #594