Initial sync of GHost src code