Core API for managing modules.