Re-added ramp down code