Fixed SOC command headers, and fixed the size checks.