Updated printconcise and printverbose functions to use function pointers