Moved buffer out of prototype.