Added preliminary getAccounts function.