Fixing up the init blocks for the MockResource hacks.