Moved a couple of non-glcd procedures outside of main source file