Add additional assertion in callback.