Finished working backup and statesaving