Made plot_steps and indepedent function.