Switch to a dictionary as an associated object instead of setting blocks directly on the object.