Implemented list mode and tests.