Add parameter for turning on console debug logging