Adding register functionality.
Copy changes.