Rewritten skeleton.