Replaced assertions with fatal errors.