Added priority to list parsing. (bugs were found)