Added functionality to create packets and put into ringbuffer