I basically need to globalise the variable DR
I\'ve made a variable called DR and set it to 0 outside the functions. Then the functions (which determ