Adding 4000 char check for error message.