Hard coded distance tables.