Removed generic exception handling.