Modify buff size to a global value so that we can change it.