Added initialBuffer argument to constructor