First commit of startgate code