Logic with schedule completed