Finished up initial step 1 and 2. Need to add lock for frame table and make sure doing evrything right.