Changed Assert to Throw. One can at least catch a Throw.