Attempt to fix logging