Which structure is responsible for controlling substances that enter and leave the cell?