Needed pointer to $buffer to be able to edit values