Add isRecording() and removed unused import