Added support for array indexing (inefficiently)