Fix priorities
Add branch configuration
Update code for the new env parsing in the bat file