Added print statements to help diagnose problem of setting body