Added registration and referLink generation