Continuous recording in an independent thread