Added backup function. Finished project