Decouple exec from modules.