Moved minion code here.