add ability to wait between replanning attempts