Added pin-event