Bunch of logging and comments