Strip out some unnecessary stuff (logging & comments).