Added ability to make a class globally read_only