Make buffer an instance variable, not static.