Can now turn on/off logging