Synchronized outputqueue in layer class, now work with pipelining