Full functionality except for calling the R file