Add buffer flushing NIF