Update gpio handling