Renamed inframe to frame. Got rid of outframe
This commit actually does what the previous one was supposed to do.