Changed input to array