align_phases now supports different methods.