Adding logging stmts