Error Logging Added