forgot to change diveDistance to taskDepth in the inner machine constructor