Add registration logic
Add history