Added error handling and a total