Replace throw with an assert