Adding print statements to better debug.