Implement yielding.

This could do with being made more efficient, as the we drop to 5 kb/s encryption using this.