addTag function is added.