What is the primary function of the Golgi apparatus?

What is the primary function of the Golgi apparatus?