Add c_list function and Rename generate function to p_list