Added resource ID substitution feature to resource management.