Update function definitions