Removed TheBackupAgent code as it wasn't working perfectly.