Initialize variables with array