Added [] and []= methods.