Added serialisation on pause to plain text file