Make up all the missing steps of functions.