Almost finished scheduler