Updating to make compatible with new Shiny package. Youch.