Added worker thread and pmidi playback