Changed a Runtime Exception to IllegalArgumentException