Change implementation of DialogShop for efficiency.