What is the main function of the epididymis?

What is the main function of the epididymis?