Update a function

Updates an existing function.