First Draft of ID stage, major overhaul to regCheck

Consider making another function to make ID much much shorter