Added function to get data updates in an array.

Also added support for input type=number