Moved some bits to a script to cut down on the number of overlays this provides