Added invalid argument exception