Added support for resource files.