Added defaults for array input