Added pins functionality