Adding set attribute for objects.