Cleaned up the error log debugging information. However, it still needs work.