Modify to work on App Engine + more.