Debugging the ursVars function