Add the recursive function of various levels