Add warning page and change some algorithms