The nucleus contains the DNA blueprint for the cell and machinery to replicate DNA and synthesize RNA. It regulates transport between the nuclear and cytoplasmic compartments, and contains heterochromatin and euchromatin. The nuclear envelope is a double membrane with nuclear pores that regulate transport. It surrounds the nucleolus, which synthesizes ribosomal components, and the chromatin, which condenses during cell division.