Change order of arguments for 'reg'
More compact code for instantiation of registers