Remove throws and clean up code.
Allow drag and drop in main application.