Begin of the sendNext function to send data over the next sequence
Extract features and copy to an array (begin)