Size control depends on both the regulation of growth rate and the control over when to stop growing. Studies of Drosophila melanogaster have shown that insulin and Target of Rapamycin (TOR) pathways play principal roles in controlling nutrition-dependent growth rates. A TOR-mediated nutrient sensor in the fat body detects nutrient availability, and regulates insulin signaling in peripheral tissues, which in turn controls larval growth rates. After larvae initiate metamorphosis, growth stops. For growth to stop at the correct time, larvae need to surpass a critical weight. Recently, it was found that the insulin-dependent growth of the prothoracic gland is involved in assessing when critical weight has been reached. Furthermore, mutations in DHR4, a repressor of ecdysone signaling, reduce critical weight and adult size. Thus, the mechanisms that control growth rates converge on those assessing size to ensure that the larvae attain the appropriate size at metamorphosis.