Merge LibBlacktortoise codes.
Merge LibBlacktortoise codes.