parseReply function is added.