Monetization module

This is only used inside this function so it can be a local static variable instead of a global.  But we should also figure out why it is being run twice.