Added minimize support in embed script