Add the function of the judgment day code