Adding improvements for latex