Added more functions in problem.