Added support for changing frames keeping overlays consistent.