Hmm, generators are tricky...