Add some debug statements to help with https://github.com/rSmart/issues/issues/184