Rename pin_state_change()