Adding some mini logging in lib call