Add getter/setters for variables. Move some message logic into this class.