Added decorator to simplify creation of calculated fields.