All fly stocks were maintained on a standard cornmeal-based larval growth medium (produced by LabScientific Inc and purchased from Fisher Scientific) and in a controlled environment (25 °C, 60% humidity) with a 12:12 hr light:dark cycle. We controlled the developmental larval density by manually aliquoting 32 µl of collected eggs into individual bottles containing 25 ml of food. Following eclosion, mixed-sex flies were kept on SY10 (10% [w/v] sucrose and 10% [w/v] yeast) medium for 2–3 days until they were used for experiments. Pioneer table sugar (purchased from Gordon Food Service, MI) and MP Biomedicals Brewer’s Yeast (purchased from Fisher Scientific) were used in our study.