Still debugging … need to check and correct for big/little endianess