Created path generator and fail constraint