Water leakage through sloped roofs is often due to the formation of ice dams at the eaves, which can be limited by controlling the transfer of heat to the roof through a combination of insulation and venting to dissipate heat. See Clause 5.3.1.2.(1)(d).