Added Registry function