Added function for writing TeamCity messages.