Combine chop and chopper to simplify for testing.
Remove duplicate variable declaration.
Add basic log line validity checker.