Cruft removed: debug print statements and similar.