Added support for file detection and wrapper File interface objects.