Remove duplicate variable declaration.
Add basic log line validity checker.