Introduced a template algorithm for parsing lists.