Added fully-functional autoregister.