Changed pin functionality