Added some stuff in text processing