Start to implement get message content function