Registration function added