Added offset and gain registers to hold correction values during dump.