Added some more error logging output