Provides the ability to run functions before and after a print request.