Adding log output back as this was done in the wrong branch