Made sure the pin is reset to the original state when 0 is written to run