Added [] operator support for getting values