Update stages.c