Changed buffer variable type