Use spawn_sched to make spawning the task on the main thread cleaner