Final version; confirmed working on shinyapps.io