Variadic shift-to-peak implmentation for multiple phases.