Add papertrail function.