Began event handling code

Began event handling code