Replace assert()