Adding some loggings