Turned some conditionals into assertions.