Tweaked arguments, made the routine automatically skip frames if
non-existent.