Rewrote php files