Added some very basic error handling and display of results