Major restructe fro Scratch GPIO4