Changed Error Loging