Store functions for drawHeader in locals