Added support for accessing array elements