Rewrote analysis