A helper for module management