Removed int() conversion function as a string is required in output to text file.