Other asserts may be better replaced with a more appropriate exception type though.