Methods for aligning sequences of actions