Added array indexing to attributes