Changed the liResult to have adaptive size.