Attempted to fix logging