Added Register Function