Created seperate helper file. More updates to rmd file