Merge "add optional attributes."