Adds print statements + try/except for debugging