Register function updated.