Added pin functionality.