Added some debug and error help information