IMPROVE: slight optimization of Frame generation