Added direct pin manipulation
Removed leftover code