Add public pin() function