Added next-problem feature.