Add a bit of logging