Added pin functionality