Added support for array indexing.