Add lsxonotic function, use it in some places