Added some loggings