Added lots of print statements for debugging.