Implement cflie record; it does not work yet due to a hanging scan. It's unclear, what's wrong