Adding schedule abstract class, to simplify cancel tasks