Syntax improvement: Pass in property name instead of writing function.