Adding logging to the script to print success message