Add flag to enable debug logging