Make use of function registry in example