Reimplemented add_li()

The old function tried to implement something that is already implemented by the programming language. And I believe it wasn't stable