Use Nakamura's suggestion of bypassing using 'filename' and just the pointers directly.