Implement the list command