Refactored assertion.