Updates to R files