Could consider adding logging after the assert.