Added sharing into the Minion generator