Changes for event handling and file download.