First version of GTG Controller code