Added array accessors and defining functions