Updated R scripts.