Add registerRegion API.
Return instancetype insetad of id.