Improved loading chains and matters.

Using StringBuilder to upload chains.