Tweaks

Made lots of tweaks to the program to optimize it for the various IR
positions