Add in some logging