Updated Steady state code