Adjusted code to account for different variations in coin list.