Add Register Function.