Made a bunch of Frame fields protected and added getters and setters with assert checks.