Replaced return false with throw exception.