Added code to convert tuples to lists.