What is the primary function of a roof system?