What is the function of macronucleus?

Controls most of the metabolic functions of the cells.