Change print to asserts.