Add fallback function for end of buffer