Added additional debug printfs.