Fixed filename issue. Pointer was being captured incorrectly, too?