Change list behavior for enhancing performance. Add type vars.