Added assertions.