Started implementing registration routine