Added FD options to file, no longer hardcoded. Fixes #22