Corrected loop rate value assignment, added ramp load update call in B
loop