Added "listaccounts" functionality