Added list command functionality.