Started work on re-writing the Outputs from inlined templates to refs of the inlined resources