Switched string concatenation to StringBuilder for speed boost.