Added base register logic.