Maybe it's better to throw exception here?