Some li related logic.