Added level of recursion and max number of solutions