First working iteration. Needs some refactoring and explanations of the
3-letter currency codes.