Add error handling for list command
Add sudo support