Remove useless logging and enable more assertions.