Created addTag method.