Encode arity in function itself.