Added invalid argument exceptions