Loop as long as there is enough data for a packet