Add paste event support
Implement read function