Add write message(message for advance) function.