Added new function to run simulation w/o shiny