Reverted back to old resetFrames