Implemented Register Function