Add register support by Xu.