Quick and dirty solution to file saving transactions. Fixes #91 @10m