Add class scheduler and improve backup class