Move valid coins & currencies to separate functions.