Trying to fix logging