Write Queue implementation