Renamed device.c to phase_algorithm.c