Fully working at last, GCS code implemented.