Changed protected class variables to privates in final classes, as it didn't make sense to make them inheritable.