Added parameter to cap the number of solutions per alternative tries.