Use a function instead of an attribute.