Add buffer marking implementation