This script must be run from the command line or localhost only.