Completed transcription function