Added in assert in instead of using assert.