Define dimensions of array early