This needs to change to `RuntimeError` as well.