Structural change, .R scripts for each function to enhance development