Adding timeout to pin type change