Debug printouts removed.