This is meant to be called from ./sunset.php.