Update function

Updates an existing function with the provided changes.