Added functionality for returning the based data array