Minor modifications to sketch.