Removed exec statements, using dictionary method of branch value assignment. 2X faster