Updated list command functionality.