Fixes #5. Output is retrieved from the tex location