Updated the steps2to4 function