Added block write to socket tools