Removed unnecessary rewrite functions

There were many rewrite functions in the original code that are no longer necessary when using 194.71.107.80 as the IP.

The script should be a little faster now.