Added line of code to write a message