Starting rewrite of GB core. NOT WORKING!

Starting rewrite of GB core. NOT WORKING!