Added changes for A1 condition variables