A replanning algorithm for decision theoretic hierarchical planning: Principles and empirical evaluation.