Generator and Flash Demystified