Updated accounts command to retrieve account info