What is the primary function of the skeletal system?