Modify FileWrapper per Karol's suggestion to simplify implementation