Update map function.