Adding missing byte order conversion
Adding memory setting to avoid sending extra data