Add debug option to prevent console logging