Remove debugging code and convert preference screen to newcode (except for _user reference).