Update function definition