Began adding logging