Added more logings to the script