Changed the exception from IllegalState to IllegalArgument