Update public vars in classes