More things are working; switched to using tempfile instead.