Changed to work on files instead of web pages.