and fail gracefully if they do not work.
I also expanded the final print statements to make it more readable