Middle of adding logging