These need to be after the original module/class definitions for the monkey-patching to work correctly.