Added some printfs for debugging.