Methods accept File instead of String