Allow group to use a function in place of a key dict