Added ability to process 16-bit data