I don't think that this is the proper usage of assert, but that can be a problem for another day...