Change wrapper function to allow arbitrary levels