Edited to use the Reg namespace