Scalar branch conversion now seems to work.  Still need to check the output values and implement vector branch conversion.