Added array functionality