Cosmic harmony with callbacks and generators