Move two functions from dispatch to display.