Added buffering
Replaced StringBuffer with StringBuilder