Removed unnecessary InvalidArgumentException