Modification of frame creation code