First version of register service