Added frame generation.