Version with two maps