Bring thrust example into decent state