Added event listeners. It's a little pointless since I'm about to have to switch to blobs, but whatever.