Add logging stuff.