Adding verbose error logging as I work through the script logic