Once a main sequence star ceases to fuse hydrogen in its core, the core begins to collapse under its own weight. This causes it to increase in temperature and hydrogen fuses in a shell outside the core, which provides more energy than core hydrogen burning. Low- and intermediate-mass stars expand and cool until at about 5,000 K they begin to increase in luminosity in a stage known as the red-giant branch. The transition from the main sequence to the red giant branch is known as the subgiant branch. The shape and duration of the subgiant branch varies for stars of different masses, due to differences in the internal configuration of the star.