Finished documenting runOnModule function