Added possibility to write messages