Updated to use [] instead of array()