Replaced "state" with "location" everywhere.