Add some important function and stp