Dash callback. At this point, I am looking to optimize its performance.