Fixed backup function. Finished project