Added LaTex and JSON output