Add logging to odd M behavior