Registration handling.