Added on write to buffer trigger