Replace global array for list entries with double pointer