Created thread for playback to avoid the UI-freeze during sleep