Fix for #1

I figured the best way to solve that issue is probably a tempfile...