Fixed process_list method