Privatized followObject() variables.
Rather than using local static variables, I decided it would be better to use private ones. Include guards were also added.