Add assert.
Remove unused parameter.