Still need to fix errors in get frame