Add max_value function. Usage: max_value('layername', 'fieldname')