Add indexing to registers