Classes/functions for helping writing modules.