Removed most assert()s.