Added a bunch of framework stuff.