Got the branching to work setting active in the IF stage