Support for "list" command mostly finished.