Add backend logic for cleanup/maintenance