Trake frames from file. Fix insert