NewLinePattern added, TAChat permissions fixed