Update map logic