Sends piece msg.

Bug fixes.