Merge "Remove implicit capture warning from Scheduler" into main