Extract exchange rate update code into seperate file