Reset functions, logic to put branch statements in correct spot in instruction list