Code needed for running the rates.