Added data logger and option to set the convergence objective