Debugging textsave function.