Added support for Empty resources.