Added support for static resources.