Ported to LocalQueue