Worked for latex backend