The basic functions have been implemented, and further optimization will be carried out later