Support binding directly to function