Mostly removed extra printfs.