Update display functions and add debugging output