adding wait option to restart goal