Edited the array for data to be returned.