Added: make received data to local array