Probably better to raise an exception instead