Code to prevent printing statistics for Mac