Added a couple asserts.