Added weekly backups and reorganized code