Outsource starting and stopping midway to thread in Melody.