Adding ability to save progress of output in case page is reloaded