First implementation of the registration