Rewrote pieces.