Add get_samples() to Write()