Changes in some R scripts