Add function to read buffer values.