Helper function for the Dash application.