Sets up registration