Define function (recursive accepted)