Make generate_blocks() a method of RCSStream.