Removed debugging code
Use our own logging for many of the errors