LOG=true

Added flag to enable logging. Logging is disabled by default.