Hook for buffer or mode change?