What is the function of papillary muscles?

What is the function of papillary muscles?