Added SendData pattern and mask.

Fixed Heap reallocation.
Fixed Backtrace function.