Added option for showing the evolution of x in each iteration