These are some pretty major edits to the php files.