Modified phases.c to reflect current signal names.