Added ability to track paste events

I have added code to track when paste events occur.