Add a couple asserts so it will be easier to debug if we accidentally pass indexed...