Changed .R for registration