Proper buffer reading