Changed msg length from 4 bytes to 2 bytes.