Fix big bad bug.
Print more debugging info.