Fixed a bug with finding a currency from an account.
Updated scheme to include currency indexes.